package com.itheima.shop.decorator;

import com.itheima.shop.domain.Order;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2020-12-15 12:14
 **/
public abstract class DecoratorMoneySum implements MoneySum {
    private MoneySum moneySum;
    
    public void setMoneySum(MoneySum moneySum) {
        this.moneySum = moneySum;
    }
    
    @Override
    public void money(Order order) {
        moneySum.money(order);
    }
}
